Adam K Dean

Posts tagged with shell

Set cwd to script directory

Published 22 January 2020 in archive with tags linux , bash , shell Perhaps this will be the smallest snippet I've ever posted, and yet, one of the most useful. If you have a script that you want to be able to invoke from anywhere and yet not worry about relative paths, use this. Continue reading …

Get container ID from within container

Published 5 April 2015 in archive with tags docker , shell , linux To get the container ID from within a container, use this: Continue reading …



Newer Page 1 of 1 Older